package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PJiajiaoDetailMapper;
import com.haima.ziliao.domain.PJiajiaoDetail;
import com.haima.ziliao.service.IPJiajiaoDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 教师详情Service业务层处理
 * 
 * @author hima
 * @date 2024-12-12
 */
@Service
public class PJiajiaoDetailServiceImpl extends ServiceImpl<PJiajiaoDetailMapper, PJiajiaoDetail> implements IPJiajiaoDetailService
{
    @Autowired
    private PJiajiaoDetailMapper pJiajiaoDetailMapper;

    /**
     * 查询教师详情
     * 
     * @param id 教师详情主键
     * @return 教师详情
     */
    @Override
    public PJiajiaoDetail selectPJiajiaoDetailById(Long id)
    {
        return pJiajiaoDetailMapper.selectPJiajiaoDetailById(id);
    }

    /**
     * 查询教师详情列表
     * 
     * @param pJiajiaoDetail 教师详情
     * @return 教师详情
     */
    @Override
    public List<PJiajiaoDetail> selectPJiajiaoDetailList(PJiajiaoDetail pJiajiaoDetail)
    {
        return pJiajiaoDetailMapper.selectPJiajiaoDetailList(pJiajiaoDetail);
    }

    /**
     * 新增教师详情
     * 
     * @param pJiajiaoDetail 教师详情
     * @return 结果
     */
    @Override
    public int insertPJiajiaoDetail(PJiajiaoDetail pJiajiaoDetail)
    {
        return pJiajiaoDetailMapper.insertPJiajiaoDetail(pJiajiaoDetail);
    }

    /**
     * 修改教师详情
     * 
     * @param pJiajiaoDetail 教师详情
     * @return 结果
     */
    @Override
    public int updatePJiajiaoDetail(PJiajiaoDetail pJiajiaoDetail)
    {
        return pJiajiaoDetailMapper.updatePJiajiaoDetail(pJiajiaoDetail);
    }

    /**
     * 批量删除教师详情
     * 
     * @param ids 需要删除的教师详情主键
     * @return 结果
     */
    @Override
    public int deletePJiajiaoDetailByIds(Long[] ids)
    {
        return pJiajiaoDetailMapper.deletePJiajiaoDetailByIds(ids);
    }

    /**
     * 删除教师详情信息
     * 
     * @param id 教师详情主键
     * @return 结果
     */
    @Override
    public int deletePJiajiaoDetailById(Long id)
    {
        return pJiajiaoDetailMapper.deletePJiajiaoDetailById(id);
    }
}
